package com.ruoyi.baseSys.service.impl;

import java.util.List;

import com.ruoyi.baseSys.domain.Building;
import com.ruoyi.baseSys.domain.Residential;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baseSys.mapper.MBuildingManageMapper;
import com.ruoyi.baseSys.domain.MBuildingManage;
import com.ruoyi.baseSys.service.IMBuildingManageService;

/**
 * 楼栋管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-25
 */
@Service
public class MBuildingManageServiceImpl implements IMBuildingManageService 
{
    @Autowired
    private MBuildingManageMapper mBuildingManageMapper;

    /**
     * 查询楼栋管理
     * 
     * @param id 楼栋管理主键
     * @return 楼栋管理
     */
    @Override
    public MBuildingManage selectMBuildingManageById(Long id)
    {
        return mBuildingManageMapper.selectMBuildingManageById(id);
    }

    /**
     * 查询楼栋管理列表
     * 
     * @param mBuildingManage 楼栋管理
     * @return 楼栋管理
     */
    @Override
    public List<MBuildingManage> selectMBuildingManageList(MBuildingManage mBuildingManage)
    {
        return mBuildingManageMapper.selectMBuildingManageList(mBuildingManage);
    }

    /**
     * 新增楼栋管理
     * 
     * @param mBuildingManage 楼栋管理
     * @return 结果
     */
    @Override
    public int insertMBuildingManage(MBuildingManage mBuildingManage)
    {
        return mBuildingManageMapper.insertMBuildingManage(mBuildingManage);
    }

    /**
     * 修改楼栋管理
     * 
     * @param mBuildingManage 楼栋管理
     * @return 结果
     */
    @Override
    public int updateMBuildingManage(MBuildingManage mBuildingManage)
    {
        return mBuildingManageMapper.updateMBuildingManage(mBuildingManage);
    }

    /**
     * 批量删除楼栋管理
     * 
     * @param ids 需要删除的楼栋管理主键
     * @return 结果
     */
    @Override
    public int deleteMBuildingManageByIds(Long[] ids)
    {
        return mBuildingManageMapper.deleteMBuildingManageByIds(ids);
    }

    /**
     * 删除楼栋管理信息
     * 
     * @param id 楼栋管理主键
     * @return 结果
     */
    @Override
    public int deleteMBuildingManageById(Long id)
    {
        return mBuildingManageMapper.deleteMBuildingManageById(id);
    }

    @Override
    public List<Building> getBuildingList(Long id) {
        return mBuildingManageMapper.getBuildingList(id);
    }

}
